﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Agro.Models;
using System.Data;
using SN.Core;
using SN.Data;
using Agro.Library;

namespace Agro.Services
{
    public interface IUserService : IBaseService
    {
        /// <summary>
        /// 保存用户
        /// </summary>
        /// <param name="user"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        bool SaveUser(T_User user, CurrentUser currUser, out string msg);
        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="ids"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        bool DeleteUsers(string ids, out string msg);
        /// <summary>
        /// 获取用户列表
        /// </summary>
        /// <param name="query"></param>
        /// <param name="wclip"></param>
        /// <returns></returns>
        DataTable GetUserList(QueryBase query, WhereClip wclip);
        /// <summary>
        /// 更改密码
        /// </summary>
        /// <param name="UserId"></param>
        /// <param name="Password"></param>
        /// <returns></returns>
        string ChangePassword(string UserId, string Password);

        void SaveUserActions(int userId, int menuId, string actionIds);

        string SaveUserMenus(int userId, string menuIds);
    }
}
